package org.zfm.image;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

@RestController
@RequestMapping("/images")
public class ImageController {

    @PostMapping
    public String upload(@RequestBody MultipartFile file){
        try {
            InputStream inputStream = file.getInputStream();

        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
